<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/mebPrerogative.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/mebprerogative.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'prerogativeid',
                    footer: "Foots",
                    cnName: '会员权益',
                    name: 'mebPrerogative',
                    url: "/mebPrerogative/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'cardtypeid',title:'卡编号',type:'int',width:120,align:'left',sortable:true},
                       {field:'createDate',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'description',title:'描述',type:'string',width:120,align:'left'},
                       {field:'isvalid',title:'是否有效',type:'int',width:120,align:'left'},
                       {field:'memberlevelid',title:'会员等级编号',type:'int',width:120,align:'left'},
                       {field:'membertypeid',title:'会员类型编号',type:'int',width:120,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'modifyID',title:'修改人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'prerogativeid',title:'特权id',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'prerogativekey',title:'特权key',type:'string',width:120,align:'left'},
                       {field:'prerogativevalue',title:'特权值',type:'string',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
